//
//  OrderDataModel.h
//  much
//
//  Created by weijunjie on 2019/1/10.
//  Copyright © 2019年 iOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GoodsModel.h"

typedef NS_ENUM(NSUInteger, OrderListPurchaseType) {
    OrderListTypeCommon, // 普通
    OrderListTypeDIRECT, // 直购
    OrderListTypeTrackerBid, // 跟标
};

typedef NS_ENUM(NSInteger, FooterViewBtnType) {
    FooterViewBtnTypeNoraml = 0,
    FooterViewBtnTypeCancelOrder,//取消订单
    FooterViewBtnTypePayOrder,//支付
    FooterViewBtnTypeApplyRefund,//申请退款
    FooterViewBtnTypeHasReceived,//确认收货
    FooterViewBtnTypeDeteleOrder,//删除
    FooterViewBtnTypeLogistics, // 查看物流
    FooterViewBtnTypeCheckCoupon,//查看卡券
    FooterViewBtnTypeSroceOrderSucces,//积分支付成功
    FooterViewBtnTypeRefound, // 退款详情
};

NS_ASSUME_NONNULL_BEGIN
@class Orders, GoodsModel;
@interface OrderDataModel : NSObject
/** 交易id */
@property (nonatomic, copy) NSString *transactionId;
/** 总价 */
@property (nonatomic, copy) NSString *amount;
/** 实付价 */
@property (nonatomic, copy) NSString *actualAmount;
/** 运费 */
@property (nonatomic, copy) NSString *shippingFee;
/** 订单 */
@property (nonatomic, strong) NSArray <Orders *> *orders;

@end

@interface Orders : NSObject
/** 交易id */
@property (nonatomic, copy) NSString *transactionId;
/** 订单id */
@property (nonatomic, copy) NSString *orderId;
@property (nonatomic, copy) NSString *merchantSid;
@property (nonatomic, copy) NSString *merchantName;
@property (nonatomic, copy) NSString *agentSid;
@property (nonatomic, copy) NSString *agentName;
@property (nonatomic, copy) NSString *shippingFee;
@property (nonatomic, copy) NSString *amount;
@property (nonatomic, copy) NSString *shopSid;
@property (nonatomic, copy) NSString *shopName;
/** 订单 */
@property (nonatomic, strong) NSArray <GoodsModel *> *spus;

@end


NS_ASSUME_NONNULL_END
